﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace sieuthi.Threelayer.VO
{
    public class mathang
    {

        public string MaMH { get; set; }
        public string TenMH { get; set; }
        public string DVT { get; set; }
        public string MaGH { get; set; }
        public mathang mathangIDataReader(IDataReader dr)
        {
            mathang obj = new mathang();
            obj.MaGH = (dr["magh"] is DBNull) ? string.Empty : dr["magh"].ToString();
            obj.MaMH = (dr["mamh"] is DBNull) ? string.Empty : dr["mamh"].ToString();
            obj.TenMH = (dr["tenmh"] is DBNull) ? string.Empty : dr["tenmh"].ToString();
            obj.DVT = (dr["dvt"] is DBNull) ? string.Empty : dr["dvt"].ToString();
            return obj;
        }
    }
}
